﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Diagnostics;

namespace DomainModel
{
    [Table(Name = "main.News")]
    public partial class News
    {
        #region string Content

        private string _content;
        [DebuggerNonUserCode]
        [Column(Storage = "_content", Name = "Content", DbType = "text", CanBeNull = false)]
        public string Content
        {
            get
            {
                return _content;
            }
            set
            {
                if (value != _content)
                {
                    _content = value;
                }
            }
        }

        #endregion

        #region System.DateTime CreateTime

        private System.DateTime _createTime;
        [DebuggerNonUserCode]
        [Column(Storage = "_createTime", Name = "CreateTime", DbType = "datetime", CanBeNull = false)]
        public System.DateTime CreateTime
        {
            get
            {
                return _createTime;
            }
            set
            {
                if (value != _createTime)
                {
                    _createTime = value;
                }
            }
        }

        #endregion

        #region int? ID

        private int? _id;
        [DebuggerNonUserCode]
        [Column(Storage = "_id", Name = "ID", DbType = "INTEGER", IsPrimaryKey = true, IsDbGenerated = true)]
        public int? ID
        {
            get
            {
                return _id;
            }
            set
            {
                if (value != _id)
                {
                    _id = value;
                }
            }
        }

        #endregion

        #region int SortID

        private int _sortID;
        [DebuggerNonUserCode]
        [Column(Storage = "_sortID", Name = "SortID", DbType = "int", CanBeNull = false)]
        public int SortID
        {
            get
            {
                return _sortID;
            }
            set
            {
                if (value != _sortID)
                {
                    _sortID = value;
                }
            }
        }

        #endregion

        #region string Title

        private string _title;
        [DebuggerNonUserCode]
        [Column(Storage = "_title", Name = "Title", DbType = "nvarchar(128)", CanBeNull = false)]
        public string Title
        {
            get
            {
                return _title;
            }
            set
            {
                if (value != _title)
                {
                    _title = value;
                }
            }
        }

        #endregion

    }
}
